import request from '@/utils/request'
export function getPageInfo(userAddressDTO) {
  return request({
    url: '/user/findAll/address',
    method: 'get',
    params:userAddressDTO,
  })
}
//删除一个地址
export function deleteOne(id) {
  return request({
    url: '/user/delete/address',
    method: 'get',
    params: {id}
  })
}
//修改
export function updateUserAddress(data) {

  return request({
    url: '/user/update/address',
    method: 'post',
    data
  })
}
//批量删除
export function batchDelete(ids) {
  return request({
    url: '/user/batch/delete/address',
    method: 'get',
    params: {ids}
  })
}
//添加
export function addUserAddress(data) {
  return request({
    url: '/user/add/address',
    method: 'post',
    data
  })
}
